package com.hzj.service;

import com.hzj.pojo.OrderInfo;
import com.hzj.pojo.PaymentInfo;
import com.hzj.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@Service
@FeignClient(name = "PROVIDER-ORDER-8003" ,contextId = "wxyPaymentInfoService")
public interface PaymentInfoService {

    /**
     * 查询支付表
     */
    @PostMapping("/atformapi/order/orderInfo/queryPaymentInfo")
    public Result queryPaymentInfo();

    /**
     * 修改OR添加支付表
     */
    @PostMapping("/atformapi/order/orderInfo/updatePaymentInfo")
    public Result updatePaymentInfo(@RequestBody PaymentInfo paymentInfo);

    /**
     * 删除支付表
     */
    @PostMapping("/atformapi/order/orderInfo/deletePaymentInfo/{outTradeNo}")
    public Result deletePaymentInfo(@PathVariable String outTradeNo);


    @PostMapping("/atformapi/order/orderInfo/querPaymentInfoByOrderId/{orderId}")
    public PaymentInfo querPaymentInfoByOrderId(@PathVariable Integer orderId);
}
